from page.base_page import BasePage
from appium.webdriver.common.mobileby import By

class HwsSsPage(BasePage):
    #定位器
    #输入框
    input_locator = (By.ID, 'searchInp')
    # 返回
    back_locator = (By.ID, 'com.gfeng.daydaycook:id/backButton')

    #操作方法
    #输入框输入内容
    def input(self,driver):
        self.driver.find_element(*self.input_locator).send_keys(driver)
    #返回
    def click_back(self):
        self.driver.find_element(*self.back_locator).click()